<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>模型设置</title>
<jsp:include page="../include.jsp" />
</head>
<body class="input">
<div class="bar">模型设置</div>
<div id="validateErrorContainer" class="validateErrorContainer">
<div class="validateErrorTitle">以下信息填写有误,请重新填写</div>
<ul></ul>
</div>
<div class="body">
<form id="validateForm" class="form" action="addModelChannel.do" method="post">
<input type="hidden" name="model_id" value="${param.model_id}"/>
<input type="hidden" name="model_type" value="${param.model_type}"/>
<input type="hidden" name="is_single" value="0"/>
<table class="inputTable">
	<tr>
		<th><label class="requireField">*</label>字段:</th>
		<td><input type="text" name="field" maxlength="100"
			class="formText" /></td>
		<th><label class="requireField">*</label>名称:</th>
		<td><input type="text" name="item_label" class="formText"
			maxlength="100" /></td>
	</tr>
	<tr>
		<th><label class="requireField">*</label>数据类型:</th>
		<td>
			<select name="data_type" style="padding: 3px">
				<c:forEach items="${mapping}" var="item">
					<option value="${item.key}">${item.value}</option>
				</c:forEach>
			</select>	
		</td>
		<th><label class="requireField">*</label>排列顺序:</th>
		<td><input type="text" name="priority" class="formText"
			maxlength="100" /></td>
	</tr>
	<tr>
		<th>默认值:</th>
		<td><input type="text" name="def_value" class="formText"
			maxlength="100" /></td>
		<th><label class="requireField">*</label>是否必须:</th>
		<td><label><input type="radio" name="is_required"
			checked="checked" value="1" />是</label> <label><input type="radio"
			name="is_required" value="0" />否</label></td>
	</tr>
	<tr>
		<th>宽度:</th>
		<td><input type="text" name="text_size" class="formText"
			maxlength="100" /></td>
		<th><label class="requireField">*</label>是否显示:</th>
		<td><label><input type="radio" name="is_display"
			checked="checked" value="1" />是</label> <label><input type="radio"
			name="is_display" value="0" />否</label></td>
	</tr>
	<tr>
		<th>帮助信息:</th>
		<td colspan="3"><input type="text" name="help_content" class="formText"
			maxlength="100" style="width: 350px" /></td>
	</tr>
	<tr>
		<th>可选项:</th>
		<td colspan="3"><input type="text" name="opt_value" class="formText"
			maxlength="100" style="width: 450px" />例如：1(key):name(value),2:sex</td>
	</tr>
</table>
<div class="buttonArea"><input type="submit" class="formButton"
	value="确  定" hidefocus />&nbsp;&nbsp; <input type="button"
	class="formButton" onclick="window.history.back(); return false;"
	value="返  回" hidefocus /></div>
</form>
</div>
</body>
</html>